home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / App / Includes / UPerform.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  1.6 KB  |  73 lines  |  [TEXT/MPS ]

  1. // UPerform.h
  2. // Copyright © 1984-96 by Apple Computer, Inc. All rights reserved.
  3.  
  4. #ifndef __UPERFORM__
  5. #define __UPERFORM__
  6.  
  7. // MacApp
  8.  
  9. #ifndef __MACAPPTYPES__
  10. #include "MacAppTypes.h"
  11. #endif
  12.  
  13. //    #ifndef __UCLASSDESC__
  14. //    #include "UClassDesc.h"
  15. //    #endif
  16.  
  17. //    #ifndef __UITERATOR__
  18. //    #include "UIterator.h"
  19. //    #endif
  20.  
  21. // Toolbox
  22.  
  23. #ifndef __FILES__
  24. #include <Files.h>
  25. #endif
  26.  
  27. // ANSI
  28.  
  29. //    #ifndef __STDDEF__
  30. //    #include <stddef.h>
  31. //    #endif
  32.  
  33. //----------------------------------------------------------------------------------------
  34. // Forward class declarations
  35. //----------------------------------------------------------------------------------------
  36.  
  37. #if qPerform
  38.     class TWindow;
  39. #endif
  40.  
  41. //----------------------------------------------------------------------------------------
  42. // Global function declarations
  43. //----------------------------------------------------------------------------------------
  44.  
  45. #if qPerform
  46.  
  47. extern Boolean PerfMonitorInitiated();
  48.     // Returns true if the performance monitor is currently running.
  49.  
  50. void InitiatePerfMonitor(TWindow* aWindow);
  51.     // Initiate performance monitoring from the performance monitor initialization dialog
  52.     // box.
  53.  
  54. void DumpPerfMonitor(const FSSpec& fileSpec);
  55.     // Save performance statistics gathered so far to the file specified by fileSpec.
  56.     
  57. void EnablePerfMonitor(const Boolean enable);
  58.     // Temporarily Enable/Disable already initiated performance monitoring.
  59.  
  60. Boolean PerfMonitorEnabled();
  61.     // Is the performance monitor enabled?
  62.  
  63. void TerminatePerfMonitor();
  64.     // Shut down performance monitoring.
  65.  
  66. #endif    // qPerform
  67.  
  68. #if qDebug
  69. extern void DebugTerminate();
  70. #endif
  71.  
  72. #endif // __UPERFORM__
  73.